<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ec: include/ec/date.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ec
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_086fd96841d95816c032b124cf477f3d.html">ec</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">date.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * date.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  Created on: 2015年6月7日</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *      Author: havesnag</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef INCLUDE_EC_DATE_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define INCLUDE_EC_DATE_H_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;time.h&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#if (defined _WIN32) || (defined WIN32) || (defined _WIN64) || (defined WIN64)</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define localtime_r(t, tm) localtime_s(tm, t)</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#else</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &lt;sys/time.h&gt;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#endif//_WIN32</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">namespace </span>ec</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;{</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">class </span>Time;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">class </span>Date;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classec_1_1Date.html">   30</a></span>&#160;<span class="keyword">class </span><a class="code" href="classec_1_1Date.html">Date</a></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;{</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> s_timeZoneOffset;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a7003f97919dbfec532a4a37c4daef6d8">getTimeZoneOffset</a>();</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="classec_1_1Date.html#a87b10f3e182109a78d3b68e9b1ed20e2">Date</a>();</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="classec_1_1Date.html#a87b10f3e182109a78d3b68e9b1ed20e2">Date</a>(time_t <a class="code" href="classec_1_1Date.html#ae376652bff3f8476f948c14cb00601c5">stamp</a>);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <a class="code" href="classec_1_1Date.html#a87b10f3e182109a78d3b68e9b1ed20e2">Date</a>(<span class="keyword">const</span> <a class="code" href="classec_1_1Time.html">Time</a> &amp;time);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <a class="code" href="classec_1_1Date.html#a87b10f3e182109a78d3b68e9b1ed20e2">Date</a>(<span class="keyword">const</span> <a class="code" href="classec_1_1Date.html">Date</a> &amp;date);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <a class="code" href="classec_1_1Date.html#a87b10f3e182109a78d3b68e9b1ed20e2">Date</a>(<span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#ad8ff77d7111044313c6d07c1096c7330">year</a>, <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a8f1a6ea36ce7a64d2aa43c93a992bcd5">month</a>, <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a0544c98d04060feb7345092fb60b8065">day</a>, <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a5c5252eb904dba193e2347f955d986f6">hour</a> = 0, <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a572776fe397fd2e25455f23a9de91d2d">minute</a> = 0, <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a62f978e3fff3e38682bd9c4876beea5d">second</a> = 0);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    ~<a class="code" href="classec_1_1Date.html">Date</a>();</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classec_1_1Date.html#a991e12c24956f398a2d86ddaf8e99e2f">set</a>(time_t stamp);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> <a class="code" href="classec_1_1Date.html#ae94b1e3c919d58e5539088e863d1ba0d">clone</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    time_t <a class="code" href="classec_1_1Date.html#ae376652bff3f8476f948c14cb00601c5">stamp</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    time_t <a class="code" href="classec_1_1Date.html#ad9ef9967be21c60db8a78dc5d0e46ab4">utcStamp</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <a class="code" href="classec_1_1Time.html">Time</a> <a class="code" href="classec_1_1Date.html#a37f8cee14d869d9b132700f8568270de">toTime</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    std::string <a class="code" href="classec_1_1Date.html#a0566e90d744f4d1d8d5490a9be7a5bbc">toString</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classec_1_1Date.html#ad8ff77d7111044313c6d07c1096c7330">   80</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#ad8ff77d7111044313c6d07c1096c7330">year</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordflow">return</span> _tm.tm_year + 1900;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    }</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classec_1_1Date.html#a8f1a6ea36ce7a64d2aa43c93a992bcd5">   86</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a8f1a6ea36ce7a64d2aa43c93a992bcd5">month</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        <span class="keywordflow">return</span> _tm.tm_mon + 1;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    }</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classec_1_1Date.html#a0544c98d04060feb7345092fb60b8065">   92</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a0544c98d04060feb7345092fb60b8065">day</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keywordflow">return</span> _tm.tm_mday;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classec_1_1Date.html#a5c5252eb904dba193e2347f955d986f6">   98</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a5c5252eb904dba193e2347f955d986f6">hour</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="keywordflow">return</span> _tm.tm_hour;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classec_1_1Date.html#a572776fe397fd2e25455f23a9de91d2d">  104</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a572776fe397fd2e25455f23a9de91d2d">minute</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <span class="keywordflow">return</span> _tm.tm_min;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    }</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classec_1_1Date.html#a62f978e3fff3e38682bd9c4876beea5d">  110</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a62f978e3fff3e38682bd9c4876beea5d">second</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="keywordflow">return</span> _tm.tm_sec;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    }</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classec_1_1Date.html#a9fd30981481e444ae07f908b447ce639">  116</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a9fd30981481e444ae07f908b447ce639">week</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        <span class="keywordflow">return</span> (_tm.tm_wday &gt; 0) ? _tm.tm_wday : 7;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    }</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classec_1_1Date.html#a02c5f9f15c4316e6a46d4ee113ab1b15">  122</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a02c5f9f15c4316e6a46d4ee113ab1b15">yearDay</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keywordflow">return</span> _tm.tm_yday;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    }</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#a9a89c8fd2f2244a6524f0149c31f51f1">setYear</a>(<span class="keywordtype">int</span> year);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#a9de7e244d6d3c0b934c8226ec2a58eb4">setMonth</a>(<span class="keywordtype">int</span> month);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#a6e0b3d8c7e82d8d5e0367e3aaf5753e6">setDay</a>(<span class="keywordtype">int</span> day);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#ace13c15d6883dfdddef61dfaca003a46">setHour</a>(<span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a5c5252eb904dba193e2347f955d986f6">hour</a>);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#aca4de51e0906fa33907044f3ac4747b7">setMinute</a>(<span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a572776fe397fd2e25455f23a9de91d2d">minute</a>);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#a2dd73608deaa5f29c14a558190c9a232">setSecond</a>(<span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a62f978e3fff3e38682bd9c4876beea5d">second</a>);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#a62f053cb6c9e23173b494fd420c58b7b">addYear</a>(<span class="keywordtype">int</span> year);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#a8611507e4a92fd7abd0b5ba9a3503c1c">addMonth</a>(<span class="keywordtype">int</span> month);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#ae0903b4862d9ffdda4308a7b403235f3">addSecond</a>(<span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a62f978e3fff3e38682bd9c4876beea5d">second</a>);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#a199dad3bfafc2cb4d16bff81683d6cca">sharpYear</a>();</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#a29f26d3467fcc160ec499da528ddac03">sharpMonth</a>();</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#a98678021cafaa5e9e4679fc4d730bc7c">sharpWeek</a>();</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#a327e2a4dc6386e97b37888b583023eea">sharpDay</a>();</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#ad92119be62b4a7389233616ec6570b55">sharpHour</a>();</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> &amp; <a class="code" href="classec_1_1Date.html#a4e9575e8c724584871afd31c9bd3ff8b">sharpMinute</a>();</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classec_1_1Date.html#ab57efb14c24f86b7b3f80457ec4ff930">isLeapYear</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classec_1_1Date.html#a1a7235d7bf12af52f16bccded463eeab">isEndOfMonth</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classec_1_1Date.html#a9cfe68c456d2de8aef5e2d168fd9ca61">getMonthDays</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keyword">struct </span>tm _tm;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;};</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="classec_1_1Time.html">  175</a></span>&#160;<span class="keyword">class </span><a class="code" href="classec_1_1Time.html">Time</a></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;{</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a7b380e6d270256754d650e7ab7a70237">  179</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> time_t <a class="code" href="classec_1_1Time.html#a7b380e6d270256754d650e7ab7a70237">SECOND_MS</a> = 1000;</div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a62df9dad0fe2b844c4402643bf41e99f">  181</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> time_t <a class="code" href="classec_1_1Time.html#a62df9dad0fe2b844c4402643bf41e99f">MINUTE_SECONDS</a> = 60;</div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a7235624a504da44bc4e361bc44184324">  183</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> time_t <a class="code" href="classec_1_1Time.html#a7235624a504da44bc4e361bc44184324">HOUR_SECONDS</a> = 3600;</div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#aea1823b361d59f11f6a0a39b9cd4faea">  185</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> time_t <a class="code" href="classec_1_1Time.html#aea1823b361d59f11f6a0a39b9cd4faea">DAY_SECONDS</a> = <a class="code" href="classec_1_1Time.html#a7235624a504da44bc4e361bc44184324">HOUR_SECONDS</a>*24;</div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a785218cc22a7610f035cb6b36c84e62c">  187</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> time_t <a class="code" href="classec_1_1Time.html#a785218cc22a7610f035cb6b36c84e62c">WEEK_SECONDS</a> = <a class="code" href="classec_1_1Time.html#aea1823b361d59f11f6a0a39b9cd4faea">DAY_SECONDS</a>*7;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46">  190</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46">PeriodType</a></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    {</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        kPeriodNone = 0, </div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a3077b99141eef7503633f22c0424bc8d">  193</a></span>&#160;        <a class="code" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a3077b99141eef7503633f22c0424bc8d">kPeriodMinute</a>, </div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9f3a401b1323abb49064aeff0e106b12">  194</a></span>&#160;        <a class="code" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9f3a401b1323abb49064aeff0e106b12">kPeriodHour</a>, </div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9a5100abd3e34402f2ee8bb574ce6372">  195</a></span>&#160;        <a class="code" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9a5100abd3e34402f2ee8bb574ce6372">kPeriodDay</a>, </div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a54ad8e4b3e752368ee49fb1914d92822">  196</a></span>&#160;        <a class="code" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a54ad8e4b3e752368ee49fb1914d92822">kPeriodWeek</a>, </div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9ece0fd6329295af0cdc2cc292f07d6d">  197</a></span>&#160;        <a class="code" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9ece0fd6329295af0cdc2cc292f07d6d">kPeriodMonth</a>, </div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a7707ba1e8c424e40a551a48fdc1c3287">  198</a></span>&#160;        <a class="code" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a7707ba1e8c424e40a551a48fdc1c3287">kPeriodYear</a>, </div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46ac8bc99ab6b38d8deb3bba6353ba157ef">  199</a></span>&#160;        <a class="code" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46ac8bc99ab6b38d8deb3bba6353ba157ef">kPeriodMax</a></div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    };</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <a class="code" href="classec_1_1Time.html">Time</a>();</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <a class="code" href="classec_1_1Time.html">Time</a>(time_t <a class="code" href="classec_1_1Time.html#a01d690a321ce3cdc18dc627761300c44">stamp</a>);</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <a class="code" href="classec_1_1Time.html">Time</a>(<span class="keyword">const</span> <a class="code" href="classec_1_1Date.html">Date</a> &amp;date);</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <a class="code" href="classec_1_1Time.html">Time</a>(<span class="keyword">const</span> <a class="code" href="classec_1_1Time.html">Time</a> &amp;time);</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    ~<a class="code" href="classec_1_1Time.html">Time</a>();</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classec_1_1Time.html#a649973da162f122234542498d17cfa5f">set</a>(time_t <a class="code" href="classec_1_1Time.html#a01d690a321ce3cdc18dc627761300c44">stamp</a>);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <a class="code" href="classec_1_1Time.html">Time</a> <a class="code" href="classec_1_1Time.html#a3abe7344a991a11875c565beb31c099f">clone</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;</div>
<div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a01d690a321ce3cdc18dc627761300c44">  218</a></span>&#160;    <span class="keyword">inline</span> time_t <a class="code" href="classec_1_1Time.html#a01d690a321ce3cdc18dc627761300c44">stamp</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <span class="keywordflow">return</span> _tv.tv_sec;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    }</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    time_t <a class="code" href="classec_1_1Time.html#ae1344f099583fe278563d3d5105025bf">utcStamp</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <a class="code" href="classec_1_1Date.html">Date</a> <a class="code" href="classec_1_1Time.html#af0bc39da85cdbf23c8513a1202d206ff">toDate</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;</div>
<div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="classec_1_1Time.html#a404a498705d89d99387c67b7a70f12b9">  230</a></span>&#160;    <span class="keyword">inline</span> int64_t <a class="code" href="classec_1_1Time.html#a404a498705d89d99387c67b7a70f12b9">ms</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        <span class="keywordflow">return</span> _tv.tv_sec*1000 + _tv.tv_usec/1000;</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    }</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <a class="code" href="classec_1_1Time.html">Time</a> &amp; <a class="code" href="classec_1_1Time.html#afcc17c2d59e9e7cbe996a8c7ae8f9fcd">addSecond</a>(<span class="keywordtype">int</span> second);</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <a class="code" href="classec_1_1Time.html">Time</a> &amp; <a class="code" href="classec_1_1Time.html#add5a030523e1ea07021c81628ee545f6">sharpHour</a>();</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <a class="code" href="classec_1_1Time.html">Time</a> &amp; <a class="code" href="classec_1_1Time.html#acc1ad308e6af04151fcc85818a45936c">sharpMinute</a>();</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <a class="code" href="classec_1_1Time.html">Time</a> &amp; <a class="code" href="classec_1_1Time.html#a126a19d88d9204dabad89a540de2ef94">nextPeriod</a>(<a class="code" href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46">Time::PeriodType</a> type, <span class="keywordtype">int</span> times);</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classec_1_1Time.html#a672781d41bfac66415d3f91bbea6f453">getFullDays</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classec_1_1Time.html#a3e049ae0ad518e44d72e86172f16e15d">getDayPassed</a>(<span class="keyword">const</span> <a class="code" href="classec_1_1Time.html">Time</a> &amp;refTime);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keyword">struct </span>timeval _tv;</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;};</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;} <span class="comment">/* namespace ec */</span></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* INCLUDE_EC_DATE_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="classec_1_1Time_html_a5a62816a9c7f2df3ca66f54d1544ea46ac8bc99ab6b38d8deb3bba6353ba157ef"><div class="ttname"><a href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46ac8bc99ab6b38d8deb3bba6353ba157ef">ec::Time::kPeriodMax</a></div><div class="ttdef"><b>Definition:</b> date.h:199</div></div>
<div class="ttc" id="classec_1_1Date_html_a02c5f9f15c4316e6a46d4ee113ab1b15"><div class="ttname"><a href="classec_1_1Date.html#a02c5f9f15c4316e6a46d4ee113ab1b15">ec::Date::yearDay</a></div><div class="ttdeci">int yearDay() const </div><div class="ttdef"><b>Definition:</b> date.h:122</div></div>
<div class="ttc" id="classec_1_1Time_html_ae1344f099583fe278563d3d5105025bf"><div class="ttname"><a href="classec_1_1Time.html#ae1344f099583fe278563d3d5105025bf">ec::Time::utcStamp</a></div><div class="ttdeci">time_t utcStamp() const </div><div class="ttdef"><b>Definition:</b> date.cpp:312</div></div>
<div class="ttc" id="classec_1_1Time_html_a5a62816a9c7f2df3ca66f54d1544ea46a9ece0fd6329295af0cdc2cc292f07d6d"><div class="ttname"><a href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9ece0fd6329295af0cdc2cc292f07d6d">ec::Time::kPeriodMonth</a></div><div class="ttdef"><b>Definition:</b> date.h:197</div></div>
<div class="ttc" id="classec_1_1Date_html_ab57efb14c24f86b7b3f80457ec4ff930"><div class="ttname"><a href="classec_1_1Date.html#ab57efb14c24f86b7b3f80457ec4ff930">ec::Date::isLeapYear</a></div><div class="ttdeci">bool isLeapYear() const </div><div class="ttdef"><b>Definition:</b> date.cpp:234</div></div>
<div class="ttc" id="classec_1_1Date_html_ae376652bff3f8476f948c14cb00601c5"><div class="ttname"><a href="classec_1_1Date.html#ae376652bff3f8476f948c14cb00601c5">ec::Date::stamp</a></div><div class="ttdeci">time_t stamp() const </div><div class="ttdef"><b>Definition:</b> date.cpp:78</div></div>
<div class="ttc" id="classec_1_1Date_html_ae0903b4862d9ffdda4308a7b403235f3"><div class="ttname"><a href="classec_1_1Date.html#ae0903b4862d9ffdda4308a7b403235f3">ec::Date::addSecond</a></div><div class="ttdeci">Date &amp; addSecond(int second)</div><div class="ttdef"><b>Definition:</b> date.cpp:179</div></div>
<div class="ttc" id="classec_1_1Date_html_a9fd30981481e444ae07f908b447ce639"><div class="ttname"><a href="classec_1_1Date.html#a9fd30981481e444ae07f908b447ce639">ec::Date::week</a></div><div class="ttdeci">int week() const </div><div class="ttdef"><b>Definition:</b> date.h:116</div></div>
<div class="ttc" id="classec_1_1Date_html_a4e9575e8c724584871afd31c9bd3ff8b"><div class="ttname"><a href="classec_1_1Date.html#a4e9575e8c724584871afd31c9bd3ff8b">ec::Date::sharpMinute</a></div><div class="ttdeci">Date &amp; sharpMinute()</div><div class="ttdef"><b>Definition:</b> date.cpp:228</div></div>
<div class="ttc" id="classec_1_1Date_html_a9a89c8fd2f2244a6524f0149c31f51f1"><div class="ttname"><a href="classec_1_1Date.html#a9a89c8fd2f2244a6524f0149c31f51f1">ec::Date::setYear</a></div><div class="ttdeci">Date &amp; setYear(int year)</div><div class="ttdef"><b>Definition:</b> date.cpp:105</div></div>
<div class="ttc" id="classec_1_1Time_html_a785218cc22a7610f035cb6b36c84e62c"><div class="ttname"><a href="classec_1_1Time.html#a785218cc22a7610f035cb6b36c84e62c">ec::Time::WEEK_SECONDS</a></div><div class="ttdeci">static const time_t WEEK_SECONDS</div><div class="ttdef"><b>Definition:</b> date.h:187</div></div>
<div class="ttc" id="classec_1_1Time_html_aea1823b361d59f11f6a0a39b9cd4faea"><div class="ttname"><a href="classec_1_1Time.html#aea1823b361d59f11f6a0a39b9cd4faea">ec::Time::DAY_SECONDS</a></div><div class="ttdeci">static const time_t DAY_SECONDS</div><div class="ttdef"><b>Definition:</b> date.h:185</div></div>
<div class="ttc" id="classec_1_1Date_html_a8611507e4a92fd7abd0b5ba9a3503c1c"><div class="ttname"><a href="classec_1_1Date.html#a8611507e4a92fd7abd0b5ba9a3503c1c">ec::Date::addMonth</a></div><div class="ttdeci">Date &amp; addMonth(int month)</div><div class="ttdef"><b>Definition:</b> date.cpp:164</div></div>
<div class="ttc" id="classec_1_1Date_html_a62f053cb6c9e23173b494fd420c58b7b"><div class="ttname"><a href="classec_1_1Date.html#a62f053cb6c9e23173b494fd420c58b7b">ec::Date::addYear</a></div><div class="ttdeci">Date &amp; addYear(int year)</div><div class="ttdef"><b>Definition:</b> date.cpp:147</div></div>
<div class="ttc" id="classec_1_1Time_html_a7235624a504da44bc4e361bc44184324"><div class="ttname"><a href="classec_1_1Time.html#a7235624a504da44bc4e361bc44184324">ec::Time::HOUR_SECONDS</a></div><div class="ttdeci">static const time_t HOUR_SECONDS</div><div class="ttdef"><b>Definition:</b> date.h:183</div></div>
<div class="ttc" id="classec_1_1Date_html_ad92119be62b4a7389233616ec6570b55"><div class="ttname"><a href="classec_1_1Date.html#ad92119be62b4a7389233616ec6570b55">ec::Date::sharpHour</a></div><div class="ttdeci">Date &amp; sharpHour()</div><div class="ttdef"><b>Definition:</b> date.cpp:221</div></div>
<div class="ttc" id="classec_1_1Date_html_aca4de51e0906fa33907044f3ac4747b7"><div class="ttname"><a href="classec_1_1Date.html#aca4de51e0906fa33907044f3ac4747b7">ec::Date::setMinute</a></div><div class="ttdeci">Date &amp; setMinute(int minute)</div><div class="ttdef"><b>Definition:</b> date.cpp:132</div></div>
<div class="ttc" id="classec_1_1Date_html_a5c5252eb904dba193e2347f955d986f6"><div class="ttname"><a href="classec_1_1Date.html#a5c5252eb904dba193e2347f955d986f6">ec::Date::hour</a></div><div class="ttdeci">int hour() const </div><div class="ttdef"><b>Definition:</b> date.h:98</div></div>
<div class="ttc" id="classec_1_1Time_html_a3abe7344a991a11875c565beb31c099f"><div class="ttname"><a href="classec_1_1Time.html#a3abe7344a991a11875c565beb31c099f">ec::Time::clone</a></div><div class="ttdeci">Time clone() const </div><div class="ttdef"><b>Definition:</b> date.cpp:307</div></div>
<div class="ttc" id="classec_1_1Date_html_a0544c98d04060feb7345092fb60b8065"><div class="ttname"><a href="classec_1_1Date.html#a0544c98d04060feb7345092fb60b8065">ec::Date::day</a></div><div class="ttdeci">int day() const </div><div class="ttdef"><b>Definition:</b> date.h:92</div></div>
<div class="ttc" id="classec_1_1Time_html_a126a19d88d9204dabad89a540de2ef94"><div class="ttname"><a href="classec_1_1Time.html#a126a19d88d9204dabad89a540de2ef94">ec::Time::nextPeriod</a></div><div class="ttdeci">Time &amp; nextPeriod(Time::PeriodType type, int times)</div><div class="ttdef"><b>Definition:</b> date.cpp:342</div></div>
<div class="ttc" id="classec_1_1Date_html_a1a7235d7bf12af52f16bccded463eeab"><div class="ttname"><a href="classec_1_1Date.html#a1a7235d7bf12af52f16bccded463eeab">ec::Date::isEndOfMonth</a></div><div class="ttdeci">bool isEndOfMonth() const </div><div class="ttdef"><b>Definition:</b> date.cpp:240</div></div>
<div class="ttc" id="classec_1_1Time_html_a404a498705d89d99387c67b7a70f12b9"><div class="ttname"><a href="classec_1_1Time.html#a404a498705d89d99387c67b7a70f12b9">ec::Time::ms</a></div><div class="ttdeci">int64_t ms() const </div><div class="ttdef"><b>Definition:</b> date.h:230</div></div>
<div class="ttc" id="classec_1_1Time_html_a62df9dad0fe2b844c4402643bf41e99f"><div class="ttname"><a href="classec_1_1Time.html#a62df9dad0fe2b844c4402643bf41e99f">ec::Time::MINUTE_SECONDS</a></div><div class="ttdeci">static const time_t MINUTE_SECONDS</div><div class="ttdef"><b>Definition:</b> date.h:181</div></div>
<div class="ttc" id="classec_1_1Time_html_a3e049ae0ad518e44d72e86172f16e15d"><div class="ttname"><a href="classec_1_1Time.html#a3e049ae0ad518e44d72e86172f16e15d">ec::Time::getDayPassed</a></div><div class="ttdeci">int getDayPassed(const Time &amp;refTime)</div></div>
<div class="ttc" id="classec_1_1Time_html_a7b380e6d270256754d650e7ab7a70237"><div class="ttname"><a href="classec_1_1Time.html#a7b380e6d270256754d650e7ab7a70237">ec::Time::SECOND_MS</a></div><div class="ttdeci">static const time_t SECOND_MS</div><div class="ttdef"><b>Definition:</b> date.h:179</div></div>
<div class="ttc" id="classec_1_1Time_html_af0bc39da85cdbf23c8513a1202d206ff"><div class="ttname"><a href="classec_1_1Time.html#af0bc39da85cdbf23c8513a1202d206ff">ec::Time::toDate</a></div><div class="ttdeci">Date toDate() const </div><div class="ttdef"><b>Definition:</b> date.cpp:317</div></div>
<div class="ttc" id="classec_1_1Date_html_a98678021cafaa5e9e4679fc4d730bc7c"><div class="ttname"><a href="classec_1_1Date.html#a98678021cafaa5e9e4679fc4d730bc7c">ec::Date::sharpWeek</a></div><div class="ttdeci">Date &amp; sharpWeek()</div><div class="ttdef"><b>Definition:</b> date.cpp:206</div></div>
<div class="ttc" id="classec_1_1Date_html_ad9ef9967be21c60db8a78dc5d0e46ab4"><div class="ttname"><a href="classec_1_1Date.html#ad9ef9967be21c60db8a78dc5d0e46ab4">ec::Date::utcStamp</a></div><div class="ttdeci">time_t utcStamp() const </div><div class="ttdef"><b>Definition:</b> date.cpp:83</div></div>
<div class="ttc" id="classec_1_1Time_html_a5a62816a9c7f2df3ca66f54d1544ea46a54ad8e4b3e752368ee49fb1914d92822"><div class="ttname"><a href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a54ad8e4b3e752368ee49fb1914d92822">ec::Time::kPeriodWeek</a></div><div class="ttdef"><b>Definition:</b> date.h:196</div></div>
<div class="ttc" id="classec_1_1Time_html_a5a62816a9c7f2df3ca66f54d1544ea46"><div class="ttname"><a href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46">ec::Time::PeriodType</a></div><div class="ttdeci">PeriodType</div><div class="ttdef"><b>Definition:</b> date.h:190</div></div>
<div class="ttc" id="classec_1_1Time_html_acc1ad308e6af04151fcc85818a45936c"><div class="ttname"><a href="classec_1_1Time.html#acc1ad308e6af04151fcc85818a45936c">ec::Time::sharpMinute</a></div><div class="ttdeci">Time &amp; sharpMinute()</div><div class="ttdef"><b>Definition:</b> date.cpp:335</div></div>
<div class="ttc" id="classec_1_1Time_html_a5a62816a9c7f2df3ca66f54d1544ea46a7707ba1e8c424e40a551a48fdc1c3287"><div class="ttname"><a href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a7707ba1e8c424e40a551a48fdc1c3287">ec::Time::kPeriodYear</a></div><div class="ttdef"><b>Definition:</b> date.h:198</div></div>
<div class="ttc" id="classec_1_1Time_html_a01d690a321ce3cdc18dc627761300c44"><div class="ttname"><a href="classec_1_1Time.html#a01d690a321ce3cdc18dc627761300c44">ec::Time::stamp</a></div><div class="ttdeci">time_t stamp() const </div><div class="ttdef"><b>Definition:</b> date.h:218</div></div>
<div class="ttc" id="classec_1_1Date_html_ad8ff77d7111044313c6d07c1096c7330"><div class="ttname"><a href="classec_1_1Date.html#ad8ff77d7111044313c6d07c1096c7330">ec::Date::year</a></div><div class="ttdeci">int year() const </div><div class="ttdef"><b>Definition:</b> date.h:80</div></div>
<div class="ttc" id="classec_1_1Date_html_a7003f97919dbfec532a4a37c4daef6d8"><div class="ttname"><a href="classec_1_1Date.html#a7003f97919dbfec532a4a37c4daef6d8">ec::Date::getTimeZoneOffset</a></div><div class="ttdeci">static int getTimeZoneOffset()</div><div class="ttdef"><b>Definition:</b> date.cpp:23</div></div>
<div class="ttc" id="classec_1_1Date_html_a572776fe397fd2e25455f23a9de91d2d"><div class="ttname"><a href="classec_1_1Date.html#a572776fe397fd2e25455f23a9de91d2d">ec::Date::minute</a></div><div class="ttdeci">int minute() const </div><div class="ttdef"><b>Definition:</b> date.h:104</div></div>
<div class="ttc" id="classec_1_1Date_html_a62f978e3fff3e38682bd9c4876beea5d"><div class="ttname"><a href="classec_1_1Date.html#a62f978e3fff3e38682bd9c4876beea5d">ec::Date::second</a></div><div class="ttdeci">int second() const </div><div class="ttdef"><b>Definition:</b> date.h:110</div></div>
<div class="ttc" id="classec_1_1Time_html_afcc17c2d59e9e7cbe996a8c7ae8f9fcd"><div class="ttname"><a href="classec_1_1Time.html#afcc17c2d59e9e7cbe996a8c7ae8f9fcd">ec::Time::addSecond</a></div><div class="ttdeci">Time &amp; addSecond(int second)</div><div class="ttdef"><b>Definition:</b> date.cpp:322</div></div>
<div class="ttc" id="classec_1_1Date_html_a2dd73608deaa5f29c14a558190c9a232"><div class="ttname"><a href="classec_1_1Date.html#a2dd73608deaa5f29c14a558190c9a232">ec::Date::setSecond</a></div><div class="ttdeci">Date &amp; setSecond(int second)</div><div class="ttdef"><b>Definition:</b> date.cpp:139</div></div>
<div class="ttc" id="classec_1_1Time_html_add5a030523e1ea07021c81628ee545f6"><div class="ttname"><a href="classec_1_1Time.html#add5a030523e1ea07021c81628ee545f6">ec::Time::sharpHour</a></div><div class="ttdeci">Time &amp; sharpHour()</div><div class="ttdef"><b>Definition:</b> date.cpp:328</div></div>
<div class="ttc" id="classec_1_1Time_html_a5a62816a9c7f2df3ca66f54d1544ea46a9a5100abd3e34402f2ee8bb574ce6372"><div class="ttname"><a href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9a5100abd3e34402f2ee8bb574ce6372">ec::Time::kPeriodDay</a></div><div class="ttdef"><b>Definition:</b> date.h:195</div></div>
<div class="ttc" id="classec_1_1Date_html_a9cfe68c456d2de8aef5e2d168fd9ca61"><div class="ttname"><a href="classec_1_1Date.html#a9cfe68c456d2de8aef5e2d168fd9ca61">ec::Date::getMonthDays</a></div><div class="ttdeci">int getMonthDays() const </div><div class="ttdef"><b>Definition:</b> date.cpp:246</div></div>
<div class="ttc" id="classec_1_1Date_html_a6e0b3d8c7e82d8d5e0367e3aaf5753e6"><div class="ttname"><a href="classec_1_1Date.html#a6e0b3d8c7e82d8d5e0367e3aaf5753e6">ec::Date::setDay</a></div><div class="ttdeci">Date &amp; setDay(int day)</div><div class="ttdef"><b>Definition:</b> date.cpp:118</div></div>
<div class="ttc" id="classec_1_1Date_html_a327e2a4dc6386e97b37888b583023eea"><div class="ttname"><a href="classec_1_1Date.html#a327e2a4dc6386e97b37888b583023eea">ec::Date::sharpDay</a></div><div class="ttdeci">Date &amp; sharpDay()</div><div class="ttdef"><b>Definition:</b> date.cpp:213</div></div>
<div class="ttc" id="classec_1_1Date_html_a0566e90d744f4d1d8d5490a9be7a5bbc"><div class="ttname"><a href="classec_1_1Date.html#a0566e90d744f4d1d8d5490a9be7a5bbc">ec::Date::toString</a></div><div class="ttdeci">std::string toString() const </div><div class="ttdef"><b>Definition:</b> date.cpp:93</div></div>
<div class="ttc" id="classec_1_1Date_html_a87b10f3e182109a78d3b68e9b1ed20e2"><div class="ttname"><a href="classec_1_1Date.html#a87b10f3e182109a78d3b68e9b1ed20e2">ec::Date::Date</a></div><div class="ttdeci">Date()</div><div class="ttdef"><b>Definition:</b> date.cpp:33</div></div>
<div class="ttc" id="classec_1_1Date_html_ae94b1e3c919d58e5539088e863d1ba0d"><div class="ttname"><a href="classec_1_1Date.html#ae94b1e3c919d58e5539088e863d1ba0d">ec::Date::clone</a></div><div class="ttdeci">Date clone() const </div><div class="ttdef"><b>Definition:</b> date.cpp:73</div></div>
<div class="ttc" id="classec_1_1Date_html_ace13c15d6883dfdddef61dfaca003a46"><div class="ttname"><a href="classec_1_1Date.html#ace13c15d6883dfdddef61dfaca003a46">ec::Date::setHour</a></div><div class="ttdeci">Date &amp; setHour(int hour)</div><div class="ttdef"><b>Definition:</b> date.cpp:125</div></div>
<div class="ttc" id="classec_1_1Time_html_a672781d41bfac66415d3f91bbea6f453"><div class="ttname"><a href="classec_1_1Time.html#a672781d41bfac66415d3f91bbea6f453">ec::Time::getFullDays</a></div><div class="ttdeci">int getFullDays() const </div><div class="ttdef"><b>Definition:</b> date.cpp:371</div></div>
<div class="ttc" id="classec_1_1Date_html_a9de7e244d6d3c0b934c8226ec2a58eb4"><div class="ttname"><a href="classec_1_1Date.html#a9de7e244d6d3c0b934c8226ec2a58eb4">ec::Date::setMonth</a></div><div class="ttdeci">Date &amp; setMonth(int month)</div><div class="ttdef"><b>Definition:</b> date.cpp:111</div></div>
<div class="ttc" id="classec_1_1Time_html"><div class="ttname"><a href="classec_1_1Time.html">ec::Time</a></div><div class="ttdoc">时间类 </div><div class="ttdef"><b>Definition:</b> date.h:175</div></div>
<div class="ttc" id="classec_1_1Date_html_a199dad3bfafc2cb4d16bff81683d6cca"><div class="ttname"><a href="classec_1_1Date.html#a199dad3bfafc2cb4d16bff81683d6cca">ec::Date::sharpYear</a></div><div class="ttdeci">Date &amp; sharpYear()</div><div class="ttdef"><b>Definition:</b> date.cpp:187</div></div>
<div class="ttc" id="classec_1_1Time_html_a5a62816a9c7f2df3ca66f54d1544ea46a3077b99141eef7503633f22c0424bc8d"><div class="ttname"><a href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a3077b99141eef7503633f22c0424bc8d">ec::Time::kPeriodMinute</a></div><div class="ttdef"><b>Definition:</b> date.h:193</div></div>
<div class="ttc" id="classec_1_1Date_html_a29f26d3467fcc160ec499da528ddac03"><div class="ttname"><a href="classec_1_1Date.html#a29f26d3467fcc160ec499da528ddac03">ec::Date::sharpMonth</a></div><div class="ttdeci">Date &amp; sharpMonth()</div><div class="ttdef"><b>Definition:</b> date.cpp:197</div></div>
<div class="ttc" id="classec_1_1Time_html_a5a62816a9c7f2df3ca66f54d1544ea46a9f3a401b1323abb49064aeff0e106b12"><div class="ttname"><a href="classec_1_1Time.html#a5a62816a9c7f2df3ca66f54d1544ea46a9f3a401b1323abb49064aeff0e106b12">ec::Time::kPeriodHour</a></div><div class="ttdef"><b>Definition:</b> date.h:194</div></div>
<div class="ttc" id="classec_1_1Date_html"><div class="ttname"><a href="classec_1_1Date.html">ec::Date</a></div><div class="ttdoc">日期类 </div><div class="ttdef"><b>Definition:</b> date.h:30</div></div>
<div class="ttc" id="classec_1_1Date_html_a37f8cee14d869d9b132700f8568270de"><div class="ttname"><a href="classec_1_1Date.html#a37f8cee14d869d9b132700f8568270de">ec::Date::toTime</a></div><div class="ttdeci">Time toTime() const </div><div class="ttdef"><b>Definition:</b> date.cpp:88</div></div>
<div class="ttc" id="classec_1_1Date_html_a8f1a6ea36ce7a64d2aa43c93a992bcd5"><div class="ttname"><a href="classec_1_1Date.html#a8f1a6ea36ce7a64d2aa43c93a992bcd5">ec::Date::month</a></div><div class="ttdeci">int month() const </div><div class="ttdef"><b>Definition:</b> date.h:86</div></div>
<div class="ttc" id="classec_1_1Date_html_a991e12c24956f398a2d86ddaf8e99e2f"><div class="ttname"><a href="classec_1_1Date.html#a991e12c24956f398a2d86ddaf8e99e2f">ec::Date::set</a></div><div class="ttdeci">void set(time_t stamp)</div><div class="ttdef"><b>Definition:</b> date.cpp:68</div></div>
<div class="ttc" id="classec_1_1Time_html_a649973da162f122234542498d17cfa5f"><div class="ttname"><a href="classec_1_1Time.html#a649973da162f122234542498d17cfa5f">ec::Time::set</a></div><div class="ttdeci">void set(time_t stamp)</div><div class="ttdef"><b>Definition:</b> date.cpp:301</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jul 12 2016 14:15:08 for ec by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
